/* pages/chat/chat.wxss */
.container {
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

scroll-view{
  flex: 1;
  overflow-y: auto;
}

.case-tab{
  display: flex;
  margin: 30rpx auto;
  justify-content: center;

  .tab{
    min-width: 190rpx;
    height: 60rpx;
    line-height: 60rpx;
    font-size: 32rpx;
    padding: 0 32rpx;
    text-align: center;
    color: #fff;
    box-sizing: border-box;

    &.active{
      background: #32A9F5;
      border-radius: 30rpx;
    }
  }
}

.case-all,
.case-my{
  width: 100%;
  padding: 0 30rpx;
  box-sizing: border-box;
  display: none;

  &.show{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 28rpx;
  }

  .empty{
    width: 100%;
    height: 300rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 26rpx;
  }

  .card, .person{
    width: calc(50% - 10rpx);
    margin-bottom: 28rpx;
    background: #fff;
    border-radius: 16rpx;
    border: 1px solid #CDCDCD;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    align-items: center;

    .content{
      width: 100%;
      display: flex;
      flex-direction: column;
      padding: 28rpx 20rpx 0 30rpx;
      font-size: 24rpx;
      box-sizing: border-box;

      .avatar{
        width: 120rpx;
        height: 120rpx;
        border-radius: 60rpx;
        overflow: hidden;
      }
      .bold{
        width: 100%;
        font-size: 28rpx;
        color: #32A9F5;
        margin-top: 16rpx;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
      }
      .hospital{
        color: #8A8A8A;
        margin-top: 14rpx;
        text-align: center;
      }
      .department{
        color: #8A8A8A;
      }
      .video{
        border-radius: 16rpx 16rpx 0 0;
        width: 100%;
        height: 200rpx;
        overflow: hidden;
      }
    }

    .detail{
      width: 100%;
      padding: 0 20rpx 20rpx;
      margin: 46rpx 0 0;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .border{
        flex: 1;
        border-top: 1px #DBDBDB solid;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13rpx 0 0;
      }

      .d-info{
        display: flex;
        font-size: 24rpx;
        align-items: center;
        .icon{
          width: 22rpx;
          height: 20rpx;
          margin-right: 10rpx;
        }
      }
      .d-arrow{
        width: 7.78rpx;
        height: 12.73rpx;
      }
    }
  }

  .person{
    .content{
      align-items: center;
    }
  }
  .card{
    .content{
      padding: 0;
      .info{
        padding: 0 20rpx 0 30rpx;
        .name{
          font-size: 20rpx;
          margin-top: 14rpx;
          color: #000;
        }
        .department{
          font-size: 20rpx;
        }
      }
    }
  }
}

.ai-train{
  display: none;

  &.show{
    display: block;
  }
}

.dashboard{
  padding: 0 35rpx;
  display: flex;
  gap: 24rpx;
  .box{
    flex: 1;
    height: 182rpx;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 16rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    .span{
      display: flex;
      align-items: flex-end;
      .num{
        font-size: 60rpx;
      }
      .fix{
        font-size: 24rpx;
        padding-bottom: 8rpx;
      }
    }
    .name{
      font-size: 28rpx;
      color: #656565;
    }
    &.total{
      .span{
        .num, .fix{
          color: #4FB6F7;
          font-weight: bold;
        }
      }
    }
    &.unfinished{
      .span{
        .num, .fix{
          color: #F74F4F;
          font-weight: bold;
        }
      }
    }
    &.percent{
      .span{
        .num, .fix{
          color: #39D1A6;
          font-weight: bold;
        }
      }
    }
  }
}

.project{
  padding: 0 35rpx;
  margin-top: 28rpx;
  .box{
    background: #fff;
    border-radius: 16rpx;
    padding: 36rpx;
    position:relative;
    overflow: hidden;
    margin-bottom: 15rpx;
    box-shadow: 0 5rpx 5rpx rgba(0,0,0,0.05);
    &.audit{
      .tip{
        background: rgba(253, 184, 82, 1);
      }
    }

    .tip{
      padding: 12rpx 24rpx;
      position: absolute;
      top: 0;
      right: 0;
      background: #32A9F5;
      font-size: 24rpx;
      color: #fff;
    }
    .title{
      font-size: 36rpx;
    }
    .labels{
      display: flex;
      margin-top: 14rpx;
      .label{
        padding: 0 16rpx;
        height: 36rpx;
        line-height: 36rpx;
        background: rgba(50, 169, 245, 0.5);
        font-size: 20rpx;
        color: #fff;
        border-radius: 4px;
        margin-right: 10rpx;
      }
    }
    .info{
      margin-top: 28rpx;
      display: grid;
      gap: 10rpx;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
      .p{
        font-size: 20rpx;
        color: rgba(67, 67, 67, 1);
      }
    }
    .btn{
      width: 100%;
      height: 68rpx;
      line-height: 68rpx;
      text-align: center;
      color:#fff;
      font-size: 32rpx;
      background: rgba(50, 169, 245, 1);
      margin-top: 45rpx;
      border-radius: 4rpx;
    }
  }
}